home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3229 < prev    next >
Encoding:
Text File  |  1996-08-05  |  702 b   |  30 lines

  1. Path: news.rain.org!usenet
  2. From: tpaul <tpaul@rain.org>
  3. Newsgroups: comp.lang.c
  4. Subject: division problem
  5. Date: Fri, 26 Jan 1996 17:18:47 -0800
  6. Organization: RAIN Public Access Internet (805) 967-RAIN
  7. Message-ID: <31097D77.11AA@rain.org>
  8. NNTP-Posting-Host: @port00.rain.org
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b5 (Win95; I)
  13.  
  14. Can anyone show me why this does not work?  I am a beginner.
  15.  
  16. #include <stdio.h>
  17.  
  18. main ()
  19. {
  20.     int fahrenheit, celsius;
  21.     
  22.     printf("Fahrenheit temperature =?";
  23.     scanf("%d",fahrenheit);
  24.     celsius = 5/9*(fahrenheit-32);
  25.     printf("Fahrenheit = %d, Celsius = %d", fahrenheit, celsius;
  26. }
  27.  
  28.  
  29. Thanks in advance.
  30.